<?php
/**
 * Created by PhpStorm.
 * User: lee
 * Date: 2018/11/13
 * Time: 2:45 PM
 */

namespace Biz\pockets\constInterface;

/*
 * 此处定义一定要遵循前缀模式，例如交易方面的前缀为order_
 */
interface EventTag{
    //下订单流程
    const ORDER_CREATE_SUCCESS = 'order.create.success';//成功下单✔︎
    const ORDER_CREATE_FAIL = 'order.create.fail';//下单失败✔︎
    const ORDER_CREATE_USE_COUPON_SUCCESS = 'order.create.use.coupon.success';//成功使用一张平台优惠券✔︎
    const ORDER_CREATE_USE_S_COUPON_SUCCESS = 'order.create.use.s_coupon.success';//成功使用一张店铺优惠券✔︎
    const ORDER_CREATE_USE_INTEGRAL_SUCCESS = 'order.create.use.integral.success';//成功使用积分✔︎
    const ORDER_CREATE_STOCK_DECR_SUCCESS = 'order.create.stock_decr.success';//库存扣减成功✔︎

    //后台脚本对订单的操作
    const ORDER_CLOSE_ORDER_SUCCESS = 'order.close.order.success';//因订单全部商品全额退款成功而关闭订单✔︎
    const ORDER_CANCEL_ORDER_SUCCESS = 'order.cancel.order.success';//取消订单成功✔︎
    const ORDER_CANCEL_COUPON_SUCCESS = 'order.cancel.coupon.success';//平台券回滚✔︎
    const ORDER_CANCEL_S_COUPON_SUCCESS = 'order.cancel.s_coupon.success';//店铺优惠券回滚✔︎
    const ORDER_CANCEL_INTEGRAL_SUCCESS = 'order.cancel.use.integral.success';//积分回滚✔︎
    const ORDER_CANCEL_STOCK_DECR_SUCCESS = 'order.cancel.stock_decr.success';//库存回滚✔︎

    //支付事件
    const ORDER_PAY_SUCCESS = 'order.pay.success';//订单支付成功✔︎
    const ORDER_PAY_FAIL = 'order.pay.fail';//订单支付失败✔︎


    //订单发货事件
    const ORDER_SHIP_ALL_DELIVERY_SUCCESS='order.ship.all.delivery.success';//订单发货，一次性全部发货成功✔︎
    //const ORDER_SHIP_ALL_DELIVERY_FAIL='order.ship.all.delivery.success';//订单发货，一次性全部发货失败
    const ORDER_SHIP_PART_DELIVERY_SUCCESS='order.ship.part.delivery.success';//订单发货，分单发货成功✔︎
    //const ORDER_SHIP_PART_DELIVERY_FAIL='order.ship.all.delivery.success';//订单发货，分单发货失败
    //const ORDER_SHIP_PART_DELIVERY_LAST_SUCCESS='order.ship.all.delivery.success';//订单发货，最后一次发货成功✔︎
    //const ORDER_SHIP_PART_DELIVERY_LAST_FAIL='order.ship.all.delivery.success';//订单发货，最后一次发货失败

    //用户对订单操作
    const ORDER_USER_CONFIRM_RECEIPT_SUCCESS = 'order.user.confirm_receipt.success';//用户确认收货成功✔︎
    const ORDER_USER_COMMENT_ORDER_SUCCESS = 'order.user.comment_order.success';//用户成功评论一个订单✔︎
    const ORDER_USER_DELETE_ORDER_SUCCESS = 'order.user.delete_order.success';//用户成功删除一个订单✔︎
    const ORDER_USER_PROLONG_TIME_ORDER_SUCCESS = 'order.user.prolong_time_order.success';//用户成功延长收货时间✔︎


    //用户退款操作
    const ORDER_REFUND_USER_APPLY_SUCCESS = 'order.refund.user.apply.success';//用户申请退款✔︎
    //const ORDER_REFUND_USER_CHANGE_APPLY_SUCCESS = 'order.refund.user.change.apply.success';//用户修改退款申请✔︎
    const ORDER_REFUND_USER_CANCEL_SUCCESS = 'order.refund.user.cancel.success';//用户成功取消退款✔︎
    const ORDER_REFUND_USER_FILL_LOGISTICS = 'order.refund.user.fill_logistics';//用户填写物流信息✔︎
    const ORDER_REFUND_RIGHTS_USER_LAUNCH_SUCCESS = 'order.refund.rights.user.launch.success';//用户成功发起维权✔︎
    const ORDER_REFUND_RIGHTS_USER_FILL = 'order.refund.rights.user.fill';//用户填写维权信息✔


    //商家对订单操作
    const ORDER_MGT_CHANGE_ORDER_ADDRESS_SUCCESS = 'order.mgt.change.order.address.success';//商家修改订单地址✔︎
    const ORDER_MGT_CHANGE_SHIPPING_FEE_SUCCESS = 'order.mgt.change.shipping_fee.success';//商家修改运费✔︎
    const ORDER_MGT_CHANGE_EXPRESS_INFO_SUCCESS = 'order.mgt.change.express_info.success';//商家修改物流信息✔︎
    const ORDER_MGT_SAVE_ORDER_REMARK_SUCCESS = 'order.mgt.save.order_remark.success';//商家保存订单备注✔︎


    //商家对退款操作
    const ORDER_REFUND_MGT_AGREE_SUCCESS = 'order.refund.mgt.agree.success';//商家同意退款或者退货✔
    const ORDER_REFUND_MGT_REJECT_SUCCESS = 'order.refund.mgt.reject.success';//商家拒绝退款或者退货✔
    const ORDER_REFUND_MGT_PROLONG_RECEIPT_TIME_SUCCESS = 'order.refund.mgt.prolong_receipt_time.success';//商家延长退货收货时间✔
    const ORDER_REFUND_MGT_CONFIRM_RECEIPT_SUCCESS = 'order.refund.mgt.confirm_receipt.success';//商家确认收到退货✔
    const ORDER_REFUND_RIGHTS_MGT_FILL_SUCCESS = 'order.refund.rights.mgt.fill.success';//商家填写维权信息✔︎

    //管理员对订单的操作
    const ORDER_ADM_SAVE_ORDER_REMARK_SUCCESS = 'order.adm.save.order_remark.success';//管理员保存订单备注✔︎


    //管理员对退款的操作
    const ORDER_REFUND_RIGHTS_ADM_INTO_SUCCESS = 'order.refund.rights.adm.into.success';//管理员介入维权✔
    const ORDER_REFUND_RIGHTS_ADM_JUDGE_SUCCESS = 'order.refund.rights.adm.judge.success';//管理员进行维权判定✔


    //后台操作
    const ORDER_REFUND_REFUND_RMB_SUCCESS=  'order.refund.refund.rmb.success';//往第三方用户账户退款成功✔
    const ORDER_REFUND_CHECKED_EXPIRED_APPLY = 'order.refund.checked_expired_apply';//检查到有过期的退款申请未处理
    const ORDER_REFUND_RIGHTS_CHECKED_EXPIRED_APPLY = 'order.refund.rights.checked_expired_apply';//检查到有未处理的过期的维权申请


}